package com.keter.framework.mail;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 初始化配置:使调用方无需包扫描条件下Autowired自动生效
 */
@Configuration
public class AutoConfiguration {

    private static final Logger logger = LoggerFactory.getLogger(AutoConfiguration.class);

    @Bean
    @ConditionalOnMissingBean
    public KeterMail keterMail() {
        return new KeterMail();
    }
}
